package com.guomei.bean.curse;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guomei.bean.User;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户课程学习记录表实体类
 */
@Data
public class UserCourseLearn implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 视频ID
     */
    private Long videoId;

    /**
     * 学习时长(秒)
     */
    private Integer learnDuration;

    /**
     * 进度(秒)
     */
    private Integer progress;

    /**
     * 状态(0-学习中,1-已完成)
     */
    private Short status;

    /**
     * 最后学习时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLearnTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    //分页大小
    private Integer pageSize;

    //页数
    private Integer pageNum;

    private Course course;

    private User user;
}
